<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateNavModuleTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('nav_module', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->default('')->comment('导航名称');
            $table->integer('icno_url')->comment('导航图标');
            $table->string('path')->nullable()->comment('小程序跳转路径');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('nav_module');
    }
}
